package com.rd.student.jike.class4.xiayinyin.day0808;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.Reader;
import java.util.Scanner;

public class Demo02 {
    public static void main(String[] args) throws FileNotFoundException {
        Scanner scanner = new Scanner(System.in);
        String name = scanner.nextLine();
        File file = new File("player.txt");
        Reader reader = new FileReader(file);
        String[] arr = new String[(int)(file.length())];
//        reader.read(arr);
        boolean a = true;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i].equals(name)){
                a = false;
                System.out.println(arr[i]);
                break;
            }
        }
        if (a){
            System.out.println("不存在该球员");
        }
//        reader.close();
    }
}
